package com.spar.openprojects.shared.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.spar.openprojects.shared.ETimeItem;
import com.sql.database.IRowMapper;

public class ETimeItemRowMapper implements IRowMapper {

	@Override
	public ETimeItem mapRow(ResultSet rs) throws SQLException {
		ETimeItem eTimeItem = new ETimeItem();
		eTimeItem.setProjectName(rs.getString("projectname"));
		eTimeItem.setMemberName(rs.getString("membername"));
		eTimeItem.setDate(rs.getInt("date"));
		eTimeItem.setTime(rs.getDouble("time"));
		return eTimeItem;
	}

}
